package edu.neusoft.springhtmldemo.service;

import edu.neusoft.springhtmldemo.domain.SensorManagement;
import edu.neusoft.springhtmldemo.mapper.SensorManagementMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SensorManagementService {
    @Autowired
    private SensorManagementMapper mapper;

    public List<SensorManagement> showSensorManagement() {
        return mapper.showSensorManagement();
    }

    public List<SensorManagement> selectSensorManagement(String sensorNum, String sensorName) {
        return mapper.selectSensorManagement(sensorNum,sensorName);
    }

    public void updateSensorManagement(SensorManagement sensorManagement) {
        mapper.updateSensorManagement(sensorManagement);
    }
}
